package org.darkforest.common.services.impl;

import org.darkforest.common.services.GiftPackageService;
import org.darkforest.dao.mapper.GiftPackageMapper;
import org.darkforest.model.GiftPackage;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Created by pc on 2017/4/6.
 */
@Service
public class GiftPackageServiceImpl implements GiftPackageService {
    @Autowired
    private GiftPackageMapper giftPackageMapper;
    @Override
    public GiftPackage selectByCondition(GiftPackage record) {
        record.setResultList(giftPackageMapper.selectByCondition(record));
        return record;
    }
}
